﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _14_超市收银系统
{
    public class ProductFather
    {
        public double Price { get; set; }

        public string Name { get; set; }

        public string ID { get; set; }

        public ProductFather(string id, double price, string name)
        {
            this.Price = price;
            this.Name = name;
            this.ID = id;
        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            //创建超市对象
            SupperMarket sm = new SupperMarket();
            //展示货物
            sm.ShowPros();
            //和用户交互
            sm.AskBuying();
            Console.ReadKey();
        }
    }
}
